<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSettingPopupSwitchTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('setting_popup_switchs', function (Blueprint $table) {
            $table->increments('id');
            $table->string('channel')->default('')->comment('频道code');
            $table->tinyInteger('status')->default('2')->comment('状态');
            $table->string('desc')->default('')->comment('开关描述');
            $table->integer('parent_id')->default(0)->comment('母弹窗id');
            $table->text('url')->comment('超链接');
            $table->string('title')->default('')->comment('标题');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('setting_popup_switchs');
    }
}
